FROM debian
MAINTAINER felinae <felinae@qq.com>
ADD tunasync tunasynctl rsync /usr/local/bin/
RUN apt-get -y update && apt-get -y install python3 python3-pip
RUN pip3 install requests beautifulsoup4 PyYAML
RUN mkdir /mirror /etc/tunasync /var/syncfile /home/script
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
VOLUME ["/mirror", "/etc/tunasync", "/var/syncfile", "/home/script"]
ENTRYPOINT ["tunasync"]
